import Ajax from "@/axios/Ajax";
/**
 * 接口
 * @returns
 * post传参用data:{}
 * get:传参是params:{}
 * 默认传参是post,可以不传
 */

/**
 * 新增退货信息接口
 */
export function addReturnsApi(data) {
  return Ajax({
    url:"/purchase/returns/add",
    method:"put",
    data,
  });
}

/**
 * 审批退货信息接口
 */
export function approveReturnsApi(data) {
  return Ajax({
    url:"/purchase/returns/approve",
    method:"post",
    data,
  });
}

/**
 * 获取退货信息接口
 */
export function getReturnsApi(params) {
  return Ajax({
    url:"/purchase/returns/list",
    method:"get",
    params,
  });
}